<template>
  <el-container>
    <el-header>
      <el-menu
        ref="menu"
        :default-active="this.$route.path"
        router
        class="el-menu-demo"
        mode="horizontal"
        active-text-color="#ff4500"
      >
        <el-menu-item index="/page/message/sign">签到</el-menu-item>
        <el-menu-item index="/page/message/notice">通知信息</el-menu-item>
        <el-menu-item index="/page/message/otherMessage">其他消息</el-menu-item>
      </el-menu>
    </el-header>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'Message',
  props: {},
  components: {},
  data () {
    return {}
  }
}
</script>

<style lang='less' scoped>
.el-menu-demo{
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}
/deep/.el-menu.el-menu--horizontal{
  margin-top: 20px;
    width: 380px;
  -moz-box-shadow: 2px 2px 10px #909090;/*firefox*/
    -webkit-box-shadow: 2px 2px 10px #909090;/*safari或chrome*/
    box-shadow:2px 2px 10px #909090;/*opera或ie9*/
}
</style>
